package com.hanthink.system.domain.pc;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hanthink.common.annotation.Excel;
import com.hanthink.common.core.domain.BaseEntity;

/**
 * 任务计划对象 EM_TASK_PLAN
 * 
 * @author hanthink
 * @date 2021-01-20
 */
public class EmTaskPlan extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 事业部 */
	@Excel(name = "事业部")
	private String hangameKey;

	/** 工厂 */
	@Excel(name = "工厂")
	private String siteKey;

	/** 计划编码 */
	@Excel(name = "计划编码")
	private String planCode;

	/** 计划名称 */
	@Excel(name = "计划名称")
	private String planName;

	/** 设备 */
	@Excel(name = "设备编码")
	private String eqKey;

	/** 周期 */
	@Excel(name = "周期(H)")
	private Long cycle;

	/** 下次执行时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Excel(name = "下次执行时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date nextExecuteTime;

	/** 计划类型 */
	@Excel(name = "计划类型(0：日任务 1：周任务 2：月任务 4：工艺点检)")
	private String planType;

	/** 设备状态 */
	@Excel(name = "设备状态(1：运行 0：停机)")
	private String eqStatus;

	/** 计划类别 */
	@Excel(name = "计划类别")
	private String planCategory;

	/** 状态0：未启用， 1：启用 */
	@Excel(name = "状态0：未启用， 1：启用")
	private String status;

	/** $column.columnComment */
	private Long id;

	/** 计划开始时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Excel(name = "计划开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date planStartTime;

	/** 计划结束 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Excel(name = "计划结束", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date planEndTime;

	/** 部门 */
	@Excel(name = "部门名称")
	private String department;

	/** 是否重复 */
	@Excel(name = "是否重复(0：否  1：是)")
	private String isRepeat;

	/** $column.columnComment */
	private String target;

	public void setSiteKey(String siteKey) {
		this.siteKey = siteKey;
	}

	public String getSiteKey() {
		return siteKey;
	}

	public void setPlanCode(String planCode) {
		this.planCode = planCode;
	}

	public String getPlanCode() {
		return planCode;
	}

	public void setPlanName(String planName) {
		this.planName = planName;
	}

	public String getPlanName() {
		return planName;
	}

	public void setEqKey(String eqKey) {
		this.eqKey = eqKey;
	}

	public String getEqKey() {
		return eqKey;
	}

	public void setCycle(Long cycle) {
		this.cycle = cycle;
	}

	public Long getCycle() {
		return cycle;
	}

	public void setNextExecuteTime(Date nextExecuteTime) {
		this.nextExecuteTime = nextExecuteTime;
	}

	public Date getNextExecuteTime() {
		return nextExecuteTime;
	}

	public void setPlanType(String planType) {
		this.planType = planType;
	}

	public String getPlanType() {
		return planType;
	}

	public void setEqStatus(String eqStatus) {
		this.eqStatus = eqStatus;
	}

	public String getEqStatus() {
		return eqStatus;
	}

	public void setPlanCategory(String planCategory) {
		this.planCategory = planCategory;
	}

	public String getPlanCategory() {
		return planCategory;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatus() {
		return status;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setPlanStartTime(Date planStartTime) {
		this.planStartTime = planStartTime;
	}

	public Date getPlanStartTime() {
		return planStartTime;
	}

	public void setPlanEndTime(Date planEndTime) {
		this.planEndTime = planEndTime;
	}

	public Date getPlanEndTime() {
		return planEndTime;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getDepartment() {
		return department;
	}

	public void setIsRepeat(String isRepeat) {
		this.isRepeat = isRepeat;
	}

	public String getIsRepeat() {
		return isRepeat;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getTarget() {
		return target;
	}
	

	public String getHangameKey() {
		return hangameKey;
	}

	public void setHangameKey(String hangameKey) {
		this.hangameKey = hangameKey;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("hangameKey", getHangameKey())
				.append("siteKey", getSiteKey()).append("planCode", getPlanCode()).append("planName", getPlanName())
				.append("eqKey", getEqKey()).append("cycle", getCycle()).append("nextExecuteTime", getNextExecuteTime())
				.append("planType", getPlanType()).append("eqStatus", getEqStatus())
				.append("planCategory", getPlanCategory()).append("status", getStatus()).append("id", getId())
				.append("planStartTime", getPlanStartTime()).append("planEndTime", getPlanEndTime())
				.append("department", getDepartment()).append("isRepeat", getIsRepeat()).append("target", getTarget())
				.toString();
	}
}
